package com.evildog.workspace.life.application.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.evildog.workspace.dependencies.mybatis.object.QueryConditionDTO;
import com.evildog.workspace.life.application.dto.AlbumCategoryListDTO;
import com.evildog.workspace.life.application.dto.AlbumCategoryPageDTO;
import com.evildog.workspace.life.application.entity.AlbumCategory;
import com.evildog.workspace.life.application.entity.AlbumCategoryListDO;
import com.evildog.workspace.life.application.entity.AlbumCategoryPageDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * albumCategory Mapper 接口
 * </p>
 *
 * @author evildog
 * @since 2020-08-02
 */
public interface AlbumCategoryMapper extends BaseMapper<AlbumCategory> {

    /**
    * 自定义分页
    */
    IPage<AlbumCategoryPageDO> getPageList(IPage<AlbumCategoryPageDO> page, @Param("queryCondition") List<QueryConditionDTO> queryConditions, @Param("param") AlbumCategoryPageDTO pageDTO);

    /**
    * list
    */
    List<AlbumCategoryListDO> getList(@Param("queryCondition") List<QueryConditionDTO> queryConditions, @Param("param") AlbumCategoryListDTO param);
}
